/**
 * 版权所有 (C), 2019-2019, XXX有限公司
 * 项目名：com.company.study.designpatterns.chain
 * 文件名: VipUserRegisterHandler
 * 日期: 2019/6/16 14:47
 * 说明:
 */
package com.company.study.designpatterns.chain;

/**
 * vip用户注册处理类
 *
 * @author Anbang713
 * @create 2019/6/16
 */
public class VipUserRegisterHandler extends AbstractHandler {
    /**
     * VIP会员
     */
    public Integer VIPLevel = 2;

    @Override
    public String operator(String userName) {
        System.out.println("VIP会员注册：" + userName);
        return userName;
    }

    @Override
    protected Integer getUserLevel() {
        return VIPLevel;
    }
}